﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Sales.DTO
{
    public class ContractAddCommand
    {
        public Sales_ContractCommandDTO sales_Contract { get; set; }

        public List<Contract_ParticularCommandDTO> contract_Particulars { get; set; }
    }

    public class Sales_ContractCommandDTO
    {
        /// <summary>
        /// 合同名称
        /// </summary>
        public string Contract_Name { get; set; }
        /// <summary>
        /// 合同编号
        /// </summary>
        public string Contract_Number { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        public DateTime Signed_Time { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>
        public int Customer_Id { get; set; }
        /// <summary>
        /// 合同金额
        /// </summary>
        public decimal Contrac_Money { get; set; }
        /// <summary>
        /// 送货地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Contrac_Descr { get; set; }
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public string Picture { get; set; }

    }
    public class Contract_ParticularCommandDTO
    {

        /// <summary>
        /// 产品Id
        /// </summary>
        public int Product_Id { get; set; }
        /// <summary>
        /// 销售数量
        /// </summary>
        public int Sales_Quantity { get; set; }

        /// <summary>
        /// 金额小计
        /// </summary>
        public decimal Money { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Descr { get; set; }

        /// <summary>
        /// 单价（未税）折扣过的
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 单价（含税）折扣过的
        /// </summary>
        public decimal Price_Tex { get; set; }
    }
}

